import Https from "@/utils/Https";

export const queryPageDataReq = async (params) =>
  await Https.post("/staff/performance/planconfig/planList", params);

export const addItemReq = async (params) =>
  await Https.post("/staff/performance/planconfig/addPlan", params);
export const updateItemReq = async (params) =>
  await Https.post("/staff/performance/planconfig/updatePlan", params, true);
export const deleteItemReq = async (params) =>
  await Https.post("/staff/performance/planconfig/deletePlan", params, true);

export const queryItemInfoReq = async (params) =>
  await Https.post("/tables", params);

export const toggleStateReq = async (params) =>
  await Https.post("/staff/performance/planconfig/updateStatus", params, true);

export const queryAllRoleReq = async (params) =>
  await Https.post("/staff/performance/planconfig/applyRoleList", params);

export const queryTypeTableReq = async (params) =>
  await Https.post("/tables/type", params);
